package pojo;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * 订单信息详情
 */
public class OrderDetail {
    private String id;  //订单编号
    private int uid; //用户（下单人）id
    private String receipt_name;//收货人
    private String receipt_address; // 收货地址
    private String receipt_phone; // 收货电话
    private int pay_type; //支付方式
    private int send_type; //配送方式
    private String notes; //备注
    private Timestamp gmt_create;//订单创建时间
    private Timestamp gmt_modified;//订单最后更改时间

    public OrderDetail() {
    }

    public OrderDetail(String id, int uid, String receipt_name, String receipt_address, String receipt_phone, int pay_type, int send_type, String notes) {
        this.id = id;
        this.uid = uid;
        this.receipt_name = receipt_name;
        this.receipt_address = receipt_address;
        this.receipt_phone = receipt_phone;
        this.pay_type = pay_type;
        this.send_type = send_type;
        this.notes = notes;
    }

    public OrderDetail(String id, int uid, String receipt_name, String receipt_address, String receipt_phone, int pay_type, int send_type, String notes, Timestamp gmt_create, Timestamp gmt_modified) {
        this.id = id;
        this.uid = uid;
        this.receipt_name = receipt_name;
        this.receipt_address = receipt_address;
        this.receipt_phone = receipt_phone;
        this.pay_type = pay_type;
        this.send_type = send_type;
        this.notes = notes;
        this.gmt_create = gmt_create;
        this.gmt_modified = gmt_modified;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getReceipt_name() {
        return receipt_name;
    }

    public void setReceipt_name(String receipt_name) {
        this.receipt_name = receipt_name;
    }

    public String getReceipt_address() {
        return receipt_address;
    }

    public void setReceipt_address(String receipt_address) {
        this.receipt_address = receipt_address;
    }

    public String getReceipt_phone() {
        return receipt_phone;
    }

    public void setReceipt_phone(String receipt_phone) {
        this.receipt_phone = receipt_phone;
    }

    public int getPay_type() {
        return pay_type;
    }

    public void setPay_type(int pay_type) {
        this.pay_type = pay_type;
    }

    public int getSend_type() {
        return send_type;
    }

    public void setSend_type(int send_type) {
        this.send_type = send_type;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Timestamp getGmt_create() {
        return gmt_create;
    }

    public void setGmt_create(Timestamp gmt_create) {
        this.gmt_create = gmt_create;
    }

    public Timestamp getGmt_modified() {
        return gmt_modified;
    }

    public void setGmt_modified(Timestamp gmt_modified) {
        this.gmt_modified = gmt_modified;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "id='" + id + '\'' +
                ", uid=" + uid +
                ", receipt_name='" + receipt_name + '\'' +
                ", receipt_address='" + receipt_address + '\'' +
                ", receipt_phone='" + receipt_phone + '\'' +
                ", pay_type=" + pay_type +
                ", send_type=" + send_type +
                ", notes='" + notes + '\'' +
                ", gmt_create=" + gmt_create +
                ", gmt_modified=" + gmt_modified +
                '}';
    }
}
